home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2000 September / september_2000.iso / intercd / root / ^Linux / cdrtools-1.10 / libhfs_iso / hybrid.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-05-15  |  1.3 KB  |  38 lines

  1. /*
  2. **    hybrid.h: extra info needed by libhfs and mkisofs
  3. **
  4. **    James Pearson 15/9/97
  5. */
  6.  
  7. #ifndef _HYBRID_H
  8.  
  9. #define    CTC    2        /* factor to increase initial Catalog file
  10.                    size to prevent the file growing */
  11. #define CTC_LOOP 4        /* number of attemps before we give up
  12.                    trying to create the volume */
  13.  
  14. #define HCE_ERROR -9999        /* dummy errno value for Catalog file
  15.                    size problems */
  16.  
  17. #define HFS_MAP_SIZE    16    /* size of HFS partition maps (8Kb) */
  18.  
  19. typedef struct {
  20.   int hfs_ce_size;        /* extents/catalog size in HFS blks */
  21.   int hfs_hdr_size;        /* vol header size in HFS blks */
  22.   int hfs_dt_size;        /* Desktop file size in HFS blks */
  23.   int hfs_tot_size;        /* extents/catalog/dt size in HFS blks */
  24.   int hfs_map_size;        /* size of partition maps in HFS blks */
  25.   int hfs_vol_size;        /* size of volume in bytes */
  26.   unsigned char *hfs_ce;    /* mem copy of extents/catalog files */
  27.   unsigned char *hfs_hdr;    /* mem copy of vol header */
  28.   unsigned char *hfs_alt_mdb;    /* location of alternate MDB */
  29.   unsigned char *hfs_map;    /* location of partiton_maps */
  30.   int Csize;            /* size of allocation unit */
  31.   int XTCsize;            /* default size of catalog/extents files */
  32.   int ctc_size;            /* factor to increase Catalog file size */
  33.   char *error;            /* HFS error message */
  34. } hce_mem;
  35.  
  36. #define _HYBRID_H
  37. #endif /* _HYBRID_H */
  38.